{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>美丽日记详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">来源：</label>
                            <div class="layui-input-block">
                                {if ($diary.bd_from == 1) }
                                <input type="text" class="layui-input" value="App用户" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="后台" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发布者：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$diary.publish_user}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                {if($diary.bd_status == 1) }
                                <input type="text" class="layui-input" value="上架中" disabled>
                                {/if}
                                {if($diary.bd_status == 2) }
                                <input type="text" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">推荐状态：</label>
                            <div class="layui-input-block">
                                {if($diary.bd_is_recommend == 1) }
                                <input type="text" class="layui-input" value="不推荐" disabled>
                                {/if}
                                {if($diary.bd_is_recommend == 2) }
                                <input type="text" class="layui-input" value="推荐" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">分类：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$diary.bdc_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">点赞数量：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$diary.bd_dz_number}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">评论数量：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$diary.bd_comment_number}" disabled>
                            </div>
                        </div>

                        {if ($diary.bd_word)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">文字内容：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$diary.bd_word}</textarea>
                            </div>
                        </div>
                        {/if}

                        {if count($diary.bd_images) > 0}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">图集</label>
                            <div class="layui-input-block">
                                {volist name='diary.bd_images' id='vo'}
                                <div class="layui-upload-list img-circle">
                                    <img class="layui-append-img" src="{$vo}">
                                </div>
                                {/volist}
                            </div>
                        </div>
                        {/if}

                        {if ($diary.bd_video)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">视频：</label>
                            <div class="layui-input-block">
                                <video width="320" height="240" controls>
                                    <source src="{$diary.bd_video}" type="video/mp4">
                                </video>
                            </div>
                        </div>
                        {/if}

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
